/*
 * @Description: 提交成功（车主车辆审核提交成功）VehicleOwnerAudit
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-08-24 15:57:35
 * @LastAuthor   : zhengzhuang
 * @lastTime     : 2020-01-04 09:17:29
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:C20Driver/event/event_bus.dart';
import 'package:C20Driver/routers/navigator_util.dart';

class VehicleOwnerAudit extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return WillPopScope(
      child: Scaffold(
        appBar: AppBar(
          title: Text('提交成功'),
          elevation: 0,
          leading: GestureDetector(
            onTap: () {
              NavigatorUtil.goToHomeRemovePage(context);
            },
            child: Icon(
              Icons.arrow_back_ios_outlined,
              color: Color(0xff000000),
            ),
          ),
        ),
        body: Container(
          color: Color(0xffffffff),
          padding: EdgeInsets.all(ScreenUtil().setWidth(100.0)),
          child: Column(
            children: <Widget>[
              Image.asset(
                'assets/icon/successfulSubmissionIcon.png',
                width: ScreenUtil().setWidth(160.0),
                height: ScreenUtil().setWidth(160.0),
              ),
              SizedBox(
                height: ScreenUtil().setWidth(80.0),
              ),
              Text(
                '资料提交成功，正在加速审核',
                style: TextStyle(
                  fontSize: ScreenUtil().setSp(32.0),
                  color: Colors.black,
                  fontWeight: FontWeight.w500,
                ),
              ),
              SizedBox(
                height: ScreenUtil().setWidth(32.0),
              ),
              RichText(
                textAlign: TextAlign.center,
                text: TextSpan(
                  text: '资料审核预计',
                  style: TextStyle(
                    fontSize: ScreenUtil().setSp(30.0),
                    color: Color(0xff999999),
                  ),
                  children: <TextSpan>[
                    TextSpan(
                      text: '3个工作日',
                      style: TextStyle(
                        fontSize: ScreenUtil().setSp(30.0),
                        color: Color(0xff3FB956),
                      ),
                    ),
                    TextSpan(
                      text: '完成，请您耐心等候，感谢您使用C20出行',
                      style: TextStyle(
                        fontSize: ScreenUtil().setSp(30.0),
                        color: Color(0xff999999),
                      ),
                    ),
                  ],
                ),
              ),
              SizedBox(
                height: ScreenUtil().setWidth(10),
              ),
              Text(
                '如有问题请致电客服热线 谢谢。',
                style: TextStyle(
                  fontSize: ScreenUtil().setSp(30.0),
                  color: Color(0xff999999),
                ),
              ),
              SizedBox(
                height: ScreenUtil().setWidth(30.0),
              ),
              Text(
                '客服热线 400-089-3089',
                style: TextStyle(
                  fontSize: ScreenUtil().setSp(30.0),
                  color: Colors.black54,
                ),
              ),
            ],
          ),
        ),
      ),
      onWillPop: () {
        eventBus.fire(new SetDispatchOrderList());
        Navigator.of(context).popUntil(ModalRoute.withName("/indexPage"));
        return Future.value(true);
      },
    );
  }
}
